import service from '@/utils/request'

const BadgeApi = {
  // ---------------胸牌----------------
  addBadge: function (data) {
    return service.post('badge', data)
  },
  deleteBadge: function (data) {
    return service.put('badge/delete', data)
  },
  editBadge: function (data) {
    return service.put('badge', data)
  },
  listBadge: function (data) {
    return service.get('badge/page', {params: data })
  },
  getBadgeInfo: function (data) {
    return service.get('badge', {params: data })
  },
}

export default BadgeApi
